package ViewPackage;

import java.awt.Color;
import java.awt.Graphics;

import delta.Field;

public class ObstacleMouseView extends MouseView{

	public ObstacleMouseView(int x, int y, int width, int height) {
		super(x, y, width, height);
		
	}

	@Override
	public void draw(Graphics g){
		
		//pontossag erdekeben double ertekek haszanlata
		double Width,Height,X,Y;	
		X=(double)x+width/4.0;
		Y=(double)y+height/8.0;
		Width=width/2.0;
		Height=height*(6.0/8.0);
		
		//szurke
		g.setColor(Color.white);
		//Majd kerekites
		g.fillRect((int)Math.round(X),(int)Math.round(Y),
				(int)Math.round(Width),(int)Math.round(Height));
		
		
	}
	

}
